package com.kid.keep.request;

import com.honeybee.cloud.framework.validation.number.Number;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description 新增小朋友
 * @Author JOHN
 * @Create 2020-01-02
 * @Since 1.0.0
 */
@Data
public class AddChildRequest implements Serializable {
    @NotBlank(message = "nickName is null")
    private String name;
    @NotBlank(message = "avatarUrl is null")
    private String avatarUrl;
    @NotNull(message = "gender is null")
    @Number(enableValues = {0, 1}, enableNull = false, message = "gender is error")
    private Integer gender;
    @NotNull(message = "weight is null")
    @Min(value = 1, message = "weight is error")
    private Integer weight;
    @NotNull(message = "height is null")
    @Min(value = 1, message = "height is error")
    private Integer height;
    @NotNull(message = "birthday is null")
    private Date birthday;
}
